package studay.everyday.day0;

public class zhuanzhijuzhen {
    public static int[][] transpose(int[][] A) {
        int H = A.length;  // 行长
        int L = A[0].length; //列长

        //创建一个新二维数组 让他实现
        int[][] B = new int[L][H];

        for (int i = 0; i < L; i++) {
            for (int j = 0; j < H; j++) {
                B[i][j]= A[j][i];
            }

        }
        return B;
    }


}
